Remove {{url}}
article thumbnail

Best Of Both Worlds: Mixing HTML5 And Native Code

mobile.smashingmagazine.com

var nativeBridge = { invoke: function (commandName, args) { console.log(commandName + ": " + JSON.stringify(args, null, 2)); window.location = js-call: + commandName + : + encodeURIComponent(JSON.stringify(args)); } }; This code attempts to navigate the browser to a new URL, but not one with a normal [link] or file:// URL scheme.